﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.DepQAViewModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AllQA
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Lang.GetText("Menu", "QA") %></h2>
    <div id="tabs" class="tabs">
        <ul>
            <li><a href="#fragment-1"><span><%: Lang.GetText("Menu", "All") %></span></a></li>
            <li><a href="#fragment-2"><span><%: Lang.GetText("Menu", "Medicine") %></span></a></li>
            <li><a href="#fragment-3"><span><%: Lang.GetText("Menu", "Psychology")%></span></a></li>
            <li><a href="#fragment-4"><span><%: Lang.GetText("Menu", "Sociology") %></span></a></li>
        </ul>
        <div id="fragment-1">
        <table class="tabcontent">
            <thead>
                <tr>
                    <th><%= Html.ActionLink("Question", "OrderQA", new { id = 1 })%></th>
                    <th><%= Html.ActionLink("Date", "OrderQA", new { id = 2 })%></th>
                    <th><%= Html.ActionLink("Email", "OrderQA", new { id = 3 })%></th>
                    <th><%= Html.ActionLink("Department", "OrderQA", new { id = 4 })%></th>
                </tr>
            </thead>
            <tbody>
                <% foreach (var item in Model.allDept) 
                { %>
                <tr id="qaAll">
                    <td><%: Html.ActionLink(item.Question, "SingleQA", new { id = item.QAID })%></td>
                    <td><%: item.InsertDate.ToString("dddd, dd MMMM yyyy")%></td>
                    <td><%: item.CreatorEmail %></td>
                    <td><%: item.Department.Name %></td>
                </tr>
                <% } %>
            </tbody>
            </table>
        </div>
        <div id="fragment-2">
        <table class="tabcontent">
            <thead>
                <tr>
                    <th><%= Html.ActionLink("Question", "OrderQA", new { id = 1 })%></th>
                    <th><%= Html.ActionLink("Date", "OrderQA", new { id = 2 })%></th>
                    <th><%= Html.ActionLink("Email", "OrderQA", new { id = 3 })%></th>
                    <th><%= Html.ActionLink("Department", "OrderQA", new { id = 4 })%></th>
                </tr>
            </thead>
            <tbody>
                 <% foreach (var item in Model.medDept) 
                { %>
                <tr id="qaMed">
                    <td><%: Html.ActionLink(item.Question, "SingleQA", new { id = item.QAID })%></td>
                    <td><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%></td>
                    <td><%: item.CreatorEmail %></td>
                    <td><%: item.Department.Name %></td>                
                </tr>
                <% } %>
            </tbody>
            </table>
        </div>
        <div id="fragment-3">
        <table class="tabcontent">
            <thead>
                <tr>
                    <th><%= Html.ActionLink("Question", "OrderQA", new { id = 1 })%></th>
                    <th><%= Html.ActionLink("Date", "OrderQA", new { id = 2 })%></th>
                    <th><%= Html.ActionLink("Email", "OrderQA", new { id = 3 })%></th>
                    <th><%= Html.ActionLink("Department", "OrderQA", new { id = 4 })%></th>
                </tr>
            </thead>
            <tbody>
             <% foreach (var item in Model.psiDept) 
            { %>
            <tr id="qaPsy">
                <td><%: Html.ActionLink(item.Question, "SingleQA", new { id = item.QAID })%></td>
                <td><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%></td>
                <td><%: item.CreatorEmail %></td>
                <td><%: item.Department.Name %></td>                
            </tr>
            <% } %>
            </tbody>
        </table>
        </div>
        <div id="fragment-4">
        <table class="tabcontent">
            <thead>
                <tr>
                    <th><%= Html.ActionLink("Question", "OrderQA", new { id = 1 })%></th>
                    <th><%= Html.ActionLink("Date", "OrderQA", new { id = 2 })%></th>
                    <th><%= Html.ActionLink("Email", "OrderQA", new { id = 3 })%></th>
                    <th><%= Html.ActionLink("Department", "OrderQA", new { id = 4 })%></th>
                </tr>
            </thead>
            <tbody>
                 <% foreach (var item in Model.socDept) 
                { %>
                <tr id="qaSos">
                    <td><%: Html.ActionLink(item.Question, "SingleQA", new { id = item.QAID })%></td>
                    <td><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%></td>
                    <td><%: item.CreatorEmail %></td>
                    <td><%: item.Department.Name %></td>                
                </tr>
                <% } %>
            </tbody>
        </table>
        </div>
    </div> 

</asp:Content>
